package com.zjy.pgcms.service;

import com.zjy.pgcms.dto.reservation.ReservationInfo;
import com.zjy.pgcms.dto.reservation.ReservationPage;
import com.zjy.pgcms.entity.Reservation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface ReservationService extends IService<Reservation> {
    List<ReservationInfo> queryReservationByUserId(Long userId);
    List<ReservationInfo> getReservationCompleted();
    List<ReservationInfo> getReservationUnExpired();
    List<ReservationInfo> getReservationExpired();

    List<ReservationInfo> queryReservationByCondition(Map<String,Object> params);
    List<ReservationPage> queryByPage(Map<String,Object> params);
    boolean setStatus(long id,int status);
}
